<?

include ("config.php");

if ($_GET["col"] == "dbmister_where")
{
	$_GET["val"] = stripslashes(stripslashes($_GET["val"]));
	$db->exeQuery("DELETE FROM `{$_GET["table"]}` WHERE {$_GET["val"]}");
}
else
{
	$db->exeQuery("DELETE FROM `{$_GET["table"]}` WHERE `{$_GET["col"]}` = '{$_GET["val"]}'");
}

Layout::iframeAlertAndClose("Záznam odstraněn!");

?>
